<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ftm" uri="http://java.sun.com/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>部门公告信息</title>
    <!--引入bootStrap-->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../../static/css/root/css_01.css">
</head>
<body>
<div class="container">
    <div class="panel panel-primary">                      <!--物品信息和服务信息填写-->
        <div class="panel-heading">
            <h3 class="panel-title"><span class="glyphicon glyphicon-bullhorn"></span>  公告信息</h3>
        </div>

        <table class="table table-hover table-striped">
            <thead>
            <tr>
                <th>公告标题</th>
                <th>公告内容</th>
                <th>发布时间</th>
                <th>发布人</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="n" items="${noticelist}">
                <tr>
                    <td>${n.noticeTitle}</td>
                    <td>${n.noticeContext}</td>
                    <td>${n.noticePubtime}</td>
                    <td>${n.emp.empName}</td>
                    <td>
                        <a href="${pageContext.request.contextPath}/notice/toQueryThis/${n.noticeId}">查看</a> |
                        <a href="${pageContext.request.contextPath}/notice/toUpdateThis/${n.noticeId}">修改</a> |
                        <a href="${pageContext.request.contextPath}/notice/delThis/${n.noticeId}">删除</a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>

    </div>
    <div class="container1">

        <div class="btn">
            <a href="${pageContext.request.contextPath}/notice/toAddNotice"><font color="black">新增公告</font></a>
        </div>

    </div>

</div>
</body>
</html>
